#ifndef GENERADORDEVARIABLES_H_
#define GENERADORDEVARIABLES_H_

#include "VariableClimatica.h"
#include "VariableClimaticaContinua.h"
#include "VariableClimaticaDiscreta.h"
#include "../xml/ParserXML.h"
#include <vector>
#include <string>
#include <fstream>

class GeneradorDeVariables
{
	private:
		std::vector< std::vector<VariableClimatica*> > variablesPorDia;
		VariableClimatica* obtenerVariable(unsigned,std::string);
		int parsear(std::string);
		void ObtenerValores(std::string linea, std::vector<double>& valores);
		void ObtenerValores(std::string linea, std::vector<double>& max, std::vector<double>& min);
		
	public:
		GeneradorDeVariables(){}
		GeneradorDeVariables(std::string);
		~GeneradorDeVariables();
		void generarVariable(unsigned, std::string,std::string&);
		
};

#endif /*GENERADORVARIABLE_H_*/
